package com.yic.module.device.controller.admin.receive.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;

/**
 * 领用申请 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class ReceiveBaseVO {

    @Schema(description = "领用单号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "领用单号不能为空")
    private String code;

    @Schema(description = "领用说明", requiredMode = Schema.RequiredMode.REQUIRED, example = "不喜欢")
    @NotNull(message = "领用说明不能为空")
    private String reason;

    @Schema(description = "领用人", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long userId;

    @Schema(description = "使用位置", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "使用位置不能为空")
    private String loacation;

    @Schema(description = "审批状态", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer approve;

    @Schema(description = "设备", requiredMode = Schema.RequiredMode.REQUIRED, example = "21251")
    @NotNull(message = "设备不能为空")
    private Long deviceId;

    @Schema(description = "工厂", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long factoryId;

    @Schema(description = "工作中心", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long centerId;

}
